* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  font-size: 14px;
  background-color: #f5f7fa;
}

#app {
  height: 100%;
}

.el-container {
  height: 100%;
}

.el-header {
  background-color: #409EFF;
  color: #fff;
  line-height: 60px;
  padding: 0 20px;
}

.el-aside {
  background-color: #f5f7fa;
  border-right: 1px solid #e6e6e6;
}

.el-main {
  padding: 20px;
  background-color: #f5f7fa;
}

.header-title {
  display: flex;
  align-items: center;
  height: 100%;
}

.box-card {
  margin-bottom: 20px;
}

.chart-container {
  padding: 10px;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100px;
  
  h2 {
    font-size: 36px;
    color: #409EFF;
  }
  
  p {
    font-size: 14px;
    color: #909399;
    margin-top: 10px;
  }
}

.city-selector {
  margin-bottom: 20px;
}

.search-form {
  .el-form-item {
    margin-bottom: 18px;
  }
}

.house-image {
  width: 100%;
  border-radius: 4px;
}

.house-detail {
  .house-link {
    margin-top: 20px;
    text-align: center;
    
    a {
      color: #409EFF;
      text-decoration: none;
      
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 元素样式优化 */
a {
  text-decoration: none;
  color: #409EFF;
  transition: color 0.3s;
}

a:hover {
  color: #66b1ff;
}

/* Element Plus 样式覆盖 */
.el-card {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.el-card:hover {
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

.el-button {
  border-radius: 4px;
}

.el-table {
  border-radius: 8px;
  overflow: hidden;
}

.el-table th {
  background-color: #f5f7fa;
}

.el-pagination {
  margin-top: 20px;
  text-align: center;
}

/* 自定义组件样式 */
.page-container {
  padding: 20px;
}

.text-primary {
  color: #409EFF;
}

.text-success {
  color: #67C23A;
}

.text-warning {
  color: #E6A23C;
}

.text-danger {
  color: #F56C6C;
}

.text-info {
  color: #909399;
}

/* 响应式布局辅助类 */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }
}

/* 动画效果 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 卡片内容布局 */
.card-content {
  padding: 20px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

/* 间距工具类 */
.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.ml-10 {
  margin-left: 10px;
}

.mr-10 {
  margin-right: 10px;
}

.p-20 {
  padding: 20px;
}

/* 图表容器样式 */
.chart-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 5px;
  color: #fff;
}

.tag-blue {
  background-color: #409EFF;
}

.tag-green {
  background-color: #67C23A;
}

.tag-orange {
  background-color: #E6A23C;
}

.tag-red {
  background-color: #F56C6C;
}

/* 价格文本样式 */
.price {
  color: #F56C6C;
  font-weight: bold;
}

/* 房源卡片样式 */
.house-card {
  cursor: pointer;
  transition: all 0.3s;
}

.house-card:hover {
  transform: translateY(-5px);
}

.house-card .el-card__body {
  padding: 0;
}

.house-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.house-card-content {
  padding: 15px;
}

.house-card-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.house-card-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #606266;
}

.house-card-price {
  font-size: 18px;
  color: #F56C6C;
  font-weight: bold;
} 